package com.stars.questions.commonQuestion.publish.service;

import com.alibaba.fastjson2.JSONObject;
import com.stars.base.entity.Result;
import com.stars.questions.commonQuestion.publish.entity.CommonReply;
import com.stars.questions.commonQuestion.publish.entity.CommonReplyItem;

import javax.servlet.http.HttpServletRequest;

public interface CommonPublishService {

    JSONObject loadQuestion(String id);

    Result saveReply(HttpServletRequest request, CommonReply reply);

    JSONObject loadQuestionListByConfigId(CommonReplyItem item);

    void flushData();
}
